<head>
    <a href="/">她说</a>
    <ul>
        <li><a href="{{route('signup')}}">注册</a></li>
        <li><a href="{{route('login')}}">登录</a></li>
    </ul>
    @if(Auth::check())
        <p>当前用户是：{{Auth::user()->name}}</p>
        <li><a href="{{route('users.show',Auth::user()->id)}}">个人中心</a></li>
        <li><a href="{{route('users.index')}}">用户列表</a></li>
        <li><a href="{{route('users.edit',Auth::user()->id)}}">编辑个人资料</a></li>

        <li>
           <form action="{{route('logout')}}" method="post">
               {{csrf_field()}}
               {{method_field('DELETE')}}
               <button type="submit" name="button">登出</button>
           </form>
        </li>
    @endif
    @include('shared._messages')
    @include('shared._errors')
</head>